<?php
$rand_list=randUniqueIntList2(1000);

$tree=new BinarySearchTree();
$tree->insertList($rand_list);
$avl=new AvlTree();
$avl->insertList($rand_list);
$splay=new SplayTree();
$splay->insertList($rand_list);

$svg=new BinaryTreeSVG();
echo $svg->fetch($tree->root,60,60,25,1,-20);
echo $svg->fetch($avl->root,60,60,25,1,-20);
echo $svg->fetch($splay->root,60,60,25,1,-20);
